<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
require ("dbcon.php");
$bbsid=isset($_GET["e_id"]) ? $_GET['e_id']:0;
$sql="delete from tb_emp where e_id='$bbsid'";
$rs=$db->query($sql);
if($rs)
{
    echo"<script language='javascript'type='text/javascript'>";
    echo"alert('删除成功');";
    echo"window.location.href='index.php';";
    echo"</script>";
    exit;
}
 else {
    echo"删除失败！";
    exit;
     
 }
 

